/**
 *  连接数据库
 */

const mysql = require('mysql2')

const db = mysql.createPool({
  host: '127.0.0.1',
  user: 'root',
  password: 'qwer1234',
  database: 'test'
})

module.exports = db